package cn.changeforyou.cmd.generator.db.mybatisplus.parameters;

import cn.changeforyou.cmd.generator.CmdGeneratorParameter;
import com.beust.jcommander.Parameter;
import javax.validation.constraints.NotEmpty;
import lombok.Data;

/**
 * @author zhyu
 * @date 2021/2/19 12:15
 */
@Data
public class Entity2TableGeneratorParamters implements CmdGeneratorParameter {

    @Parameter(names = {"-p", "-projectPath"}, description = "项目地址")
    @NotEmpty
    private String projectPath;

    @NotEmpty
    @Parameter(names = {"-e", "entityPath"}, description = "实体类地址")
    private String entityName;

    @Parameter(names = {"-h", "-help"}, description = "帮助文档")
    private boolean help;

    @Override
    public void isHelp(boolean isHelp) {
        this.help = isHelp;
    }
}
